import {app,router,store,Vue} from './app'


import iView from "iview";
import 'iview/dist/styles/iview.css';    // 使用 CSS
Vue.use(iView);
import MuseUI from 'muse-ui'
import 'muse-ui/dist/muse-ui.css'
Vue.use(MuseUI)
Vue.prototype.storage=localStorage || sessionStorage ;
Vue.storage=Vue.prototype.storage

router.beforeEach((route, redirect, next) => {
    //store.dispatch('global/gProgress', 0)
    next()
})

if (window.__INITIAL_STATE__) {
    store.replaceState(window.__INITIAL_STATE__)
}

router.onReady(() => {
	app.$mount('.app')
});

